import request from '@/utils/request'

// 根据pid查询分类列表
export const GetCategoriesByPid = pid => {
  return request({
    url: `/admin/product/category/listCatesByPid/${pid}`,
    method: 'get',
  })
}
//导出分类数据excel文件
export const ExportCategoriesExcel = () => {
  return request({
    url: `/admin/product/category/exportCates`,
    method: 'get',
    //表示请求响应的响应体类型是blob类型(文件)
    responseType: 'blob',
  })
}
